package com.haonan.springboot_exercise.service;

import com.haonan.springboot_exercise.bean.pojo.Result;
import org.springframework.stereotype.Service;

/**
 * @author haonan
 * @date 2021/4/17 21:11
 **/
@Service
public interface PopServerService {
    /**
     * 判断客户端发的 email_id集合 对不对，返回状态码的String形式
     * 250,LISTReady
     * 350,LISTWrong
     * @param payload email_id集合
     * @return JSON.toJSONString(MsgResult msgResult)
     */
    String getLISTResult(String payload);

    /**
     * 关闭POP服务
     * @return
     * @throws Exception
     */
    Result closePopServer() throws Exception;

    /**
     * 开启Pop服务
     * @return
     * @throws Exception
     */
    Result openPopServer() throws Exception;
}
